/**
 * 路由入口
 * 
 * 主要功能：
 * - 注册所有路由中间件
 *
 * @file routes.js
 * @version 1.0.0
 * @author "nailuo"
 * @created 2025-8-30
 * @lastModified 2025-8-30
 */
const express = require("express");

const login = require("./login/login.js");
const register = require("./register/register.js");

const imgStatic = require("./static/imgStatic.js");
const htmlStatic = require("./static/htmlStatic.js");
const router = express.Router();

router.post("/login", login.sendVerificationCode);
router.post("/login/verify", login.verifyCode);

router.post("/register", register.sendVerificationCode);
router.post("/register/verify", register.verifyCode);

router.get("/img", imgStatic);
router.get("/html", htmlStatic);
module.exports = router;
